Optimal. Leaf size=117 \[ \frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}-\frac{b^2 c^2}{12 x^2}-\frac{1}{3} b^2 c^4 \log \left (1-c^2 x^2\right )+\frac{2}{3} b^2 c^4 \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.228329, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {5916, 5982, 266, 44, 36, 29, 31, 5948} \[ \frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}-\frac{b^2 c^2}{12 x^2}-\frac{1}{3} b^2 c^4 \log \left (1-c^2 x^2\right )+\frac{2}{3} b^2 c^4 \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 5982
Rule 266
Rule 44
Rule 36
Rule 29
Rule 31
Rule 5948
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{x^5} \, dx &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{2} (b c) \int \frac{a+b \tanh ^{-1}(c x)}{x^4 \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{2} (b c) \int \frac{a+b \tanh ^{-1}(c x)}{x^4} \, dx+\frac{1}{2} \left (b c^3\right ) \int \frac{a+b \tanh ^{-1}(c x)}{x^2 \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{6} \left (b^2 c^2\right ) \int \frac{1}{x^3 \left (1-c^2 x^2\right )} \, dx+\frac{1}{2} \left (b c^3\right ) \int \frac{a+b \tanh ^{-1}(c x)}{x^2} \, dx+\frac{1}{2} \left (b c^5\right ) \int \frac{a+b \tanh ^{-1}(c x)}{1-c^2 x^2} \, dx\\ &=-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}+\frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{12} \left (b^2 c^2\right ) \operatorname{Subst}\left (\int \frac{1}{x^2 \left (1-c^2 x\right )} \, dx,x,x^2\right )+\frac{1}{2} \left (b^2 c^4\right ) \int \frac{1}{x \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}+\frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{12} \left (b^2 c^2\right ) \operatorname{Subst}\left (\int \left (\frac{1}{x^2}+\frac{c^2}{x}-\frac{c^4}{-1+c^2 x}\right ) \, dx,x,x^2\right )+\frac{1}{4} \left (b^2 c^4\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (1-c^2 x\right )} \, dx,x,x^2\right )\\ &=-\frac{b^2 c^2}{12 x^2}-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}+\frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{1}{6} b^2 c^4 \log (x)-\frac{1}{12} b^2 c^4 \log \left (1-c^2 x^2\right )+\frac{1}{4} \left (b^2 c^4\right ) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^2\right )+\frac{1}{4} \left (b^2 c^6\right ) \operatorname{Subst}\left (\int \frac{1}{1-c^2 x} \, dx,x,x^2\right )\\ &=-\frac{b^2 c^2}{12 x^2}-\frac{b c \left (a+b \tanh ^{-1}(c x)\right )}{6 x^3}-\frac{b c^3 \left (a+b \tanh ^{-1}(c x)\right )}{2 x}+\frac{1}{4} c^4 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 x^4}+\frac{2}{3} b^2 c^4 \log (x)-\frac{1}{3} b^2 c^4 \log \left (1-c^2 x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0691125, size = 164, normalized size = 1.4 \[ -\frac{3 a^2+6 a b c^3 x^3+3 a b c^4 x^4 \log (1-c x)-3 a b c^4 x^4 \log (c x+1)+2 b \tanh ^{-1}(c x) \left (3 a+3 b c^3 x^3+b c x\right )+2 a b c x+b^2 c^2 x^2-8 b^2 c^4 x^4 \log (x)+4 b^2 c^4 x^4 \log (1-c x)+4 b^2 c^4 x^4 \log (c x+1)-3 b^2 \left (c^4 x^4-1\right ) \tanh ^{-1}(c x)^2}{12 x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.026, size = 290, normalized size = 2.5 \begin{align*} -{\frac{{a}^{2}}{4\,{x}^{4}}}-{\frac{{b}^{2} \left ({\it Artanh} \left ( cx \right ) \right ) ^{2}}{4\,{x}^{4}}}-{\frac{{c}^{4}{b}^{2}{\it Artanh} \left ( cx \right ) \ln \left ( cx-1 \right ) }{4}}-{\frac{c{b}^{2}{\it Artanh} \left ( cx \right ) }{6\,{x}^{3}}}-{\frac{{c}^{3}{b}^{2}{\it Artanh} \left ( cx \right ) }{2\,x}}+{\frac{{c}^{4}{b}^{2}{\it Artanh} \left ( cx \right ) \ln \left ( cx+1 \right ) }{4}}-{\frac{{c}^{4}{b}^{2} \left ( \ln \left ( cx-1 \right ) \right ) ^{2}}{16}}+{\frac{{c}^{4}{b}^{2}\ln \left ( cx-1 \right ) }{8}\ln \left ({\frac{1}{2}}+{\frac{cx}{2}} \right ) }-{\frac{{c}^{4}{b}^{2}}{8}\ln \left ( -{\frac{cx}{2}}+{\frac{1}{2}} \right ) \ln \left ({\frac{1}{2}}+{\frac{cx}{2}} \right ) }+{\frac{{c}^{4}{b}^{2}\ln \left ( cx+1 \right ) }{8}\ln \left ( -{\frac{cx}{2}}+{\frac{1}{2}} \right ) }-{\frac{{c}^{4}{b}^{2} \left ( \ln \left ( cx+1 \right ) \right ) ^{2}}{16}}-{\frac{{c}^{4}{b}^{2}\ln \left ( cx-1 \right ) }{3}}-{\frac{{b}^{2}{c}^{2}}{12\,{x}^{2}}}+{\frac{2\,{c}^{4}{b}^{2}\ln \left ( cx \right ) }{3}}-{\frac{{c}^{4}{b}^{2}\ln \left ( cx+1 \right ) }{3}}-{\frac{ab{\it Artanh} \left ( cx \right ) }{2\,{x}^{4}}}-{\frac{{c}^{4}ab\ln \left ( cx-1 \right ) }{4}}-{\frac{abc}{6\,{x}^{3}}}-{\frac{{c}^{3}ab}{2\,x}}+{\frac{{c}^{4}ab\ln \left ( cx+1 \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.997564, size = 302, normalized size = 2.58 \begin{align*} \frac{1}{12} \,{\left ({\left (3 \, c^{3} \log \left (c x + 1\right ) - 3 \, c^{3} \log \left (c x - 1\right ) - \frac{2 \,{\left (3 \, c^{2} x^{2} + 1\right )}}{x^{3}}\right )} c - \frac{6 \, \operatorname{artanh}\left (c x\right )}{x^{4}}\right )} a b + \frac{1}{48} \,{\left ({\left (32 \, c^{2} \log \left (x\right ) - \frac{3 \, c^{2} x^{2} \log \left (c x + 1\right )^{2} + 3 \, c^{2} x^{2} \log \left (c x - 1\right )^{2} + 16 \, c^{2} x^{2} \log \left (c x - 1\right ) - 2 \,{\left (3 \, c^{2} x^{2} \log \left (c x - 1\right ) - 8 \, c^{2} x^{2}\right )} \log \left (c x + 1\right ) + 4}{x^{2}}\right )} c^{2} + 4 \,{\left (3 \, c^{3} \log \left (c x + 1\right ) - 3 \, c^{3} \log \left (c x - 1\right ) - \frac{2 \,{\left (3 \, c^{2} x^{2} + 1\right )}}{x^{3}}\right )} c \operatorname{artanh}\left (c x\right )\right )} b^{2} - \frac{b^{2} \operatorname{artanh}\left (c x\right )^{2}}{4 \, x^{4}} - \frac{a^{2}}{4 \, x^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.37999, size = 386, normalized size = 3.3 \begin{align*} \frac{32 \, b^{2} c^{4} x^{4} \log \left (x\right ) + 4 \,{\left (3 \, a b - 4 \, b^{2}\right )} c^{4} x^{4} \log \left (c x + 1\right ) - 4 \,{\left (3 \, a b + 4 \, b^{2}\right )} c^{4} x^{4} \log \left (c x - 1\right ) - 24 \, a b c^{3} x^{3} - 4 \, b^{2} c^{2} x^{2} - 8 \, a b c x + 3 \,{\left (b^{2} c^{4} x^{4} - b^{2}\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )^{2} - 12 \, a^{2} - 4 \,{\left (3 \, b^{2} c^{3} x^{3} + b^{2} c x + 3 \, a b\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{48 \, x^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.60062, size = 184, normalized size = 1.57 \begin{align*} \begin{cases} - \frac{a^{2}}{4 x^{4}} + \frac{a b c^{4} \operatorname{atanh}{\left (c x \right )}}{2} - \frac{a b c^{3}}{2 x} - \frac{a b c}{6 x^{3}} - \frac{a b \operatorname{atanh}{\left (c x \right )}}{2 x^{4}} + \frac{2 b^{2} c^{4} \log{\left (x \right )}}{3} - \frac{2 b^{2} c^{4} \log{\left (x - \frac{1}{c} \right )}}{3} + \frac{b^{2} c^{4} \operatorname{atanh}^{2}{\left (c x \right )}}{4} - \frac{2 b^{2} c^{4} \operatorname{atanh}{\left (c x \right )}}{3} - \frac{b^{2} c^{3} \operatorname{atanh}{\left (c x \right )}}{2 x} - \frac{b^{2} c^{2}}{12 x^{2}} - \frac{b^{2} c \operatorname{atanh}{\left (c x \right )}}{6 x^{3}} - \frac{b^{2} \operatorname{atanh}^{2}{\left (c x \right )}}{4 x^{4}} & \text{for}\: c \neq 0 \\- \frac{a^{2}}{4 x^{4}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{artanh}\left (c x\right ) + a\right )}^{2}}{x^{5}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]